Repository navigation
Split NuGet packages per UI framework (Uwp, WinUI, Uno) - #913
Merged
Merged
Conversation
…bmodule#328 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Bump tooling to the commit of CommunityToolkit/Tooling-Windows-Submodule#328, which gives each UI framework its own set of packages. - Pack once per UI framework (uwp, winui, uno) in the package, sign and release jobs - Only run uno-check for the mobile Uno build legs and the Uno package leg - Run the SourceGenerators tests in a single build leg - Tag the Uno packages as Uno, and not as Windows App SDK/UWP ones - Update the docs Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Every package ships its component's ReadMe.md, which told Uno.WinUI users to use the WinUI package. The components that only support UWP and Windows App SDK drop the Uno mention. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sergio0694
force-pushed
the
sergio0694-split-uno-packages
branch
from
December 5, 2026 00:31
7c58a9d to
a43481a
Compare
Sergio0694
marked this pull request as ready for review
December 5, 2026 00:32
3 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes
Adopts CommunityToolkit/Tooling-Windows-Submodule#328, which gives each UI framework its own set of NuGet packages:
CommunityToolkit.Uwp.*(UWP, WinUI 2),CommunityToolkit.WinUI.*(Windows App SDK, WinUI 3) and the newCommunityToolkit.Uno.*(Uno Platform). A package never mixes target frameworks of different UI frameworks, which also removes the emptylib/net10.0-windows10.0.18362/_._placeholder workaround (#388). This repo had noEnableXamlCompilerMismatchedTfmUnoWorkaroundto delete.The
toolingsubmodule points at the merged toolingmaincommit (e562b88, includes CommunityToolkit/Tooling-Windows-Submodule#328).PR Type
What is the current behavior?
The package job packs
-MultiTargets all -WinUIMajorVersion 2|3. TheCommunityToolkit.WinUI.*packages mix the Windows App SDKnet10.0-windows10.0.26100lib with the Uno libs (net10.0,net10.0-android/ios/maccatalyst) plus an emptynet10.0-windows10.0.18362placeholder, and are the documented packages for Uno apps.What is the new behavior?
build.yml:package,signandreleasematrices areui: [uwp, winui, uno]; the pack step isBuild-Toolkit-Components.ps1 -UIFramework ${{ matrix.ui }}; artifacts are renamed consistently (nuget-list-*,nuget-packages-*,build-logs-*,signed-nuget-packages-*).Restore dotnet tools,Remove .NET SDKs newer than global.jsonanduno-checkonly run for theunopackage leg (with--target android --target ios --target macos) and, in thebuildjob, only for themacos/ios/androidlegs. Thewasmbuild leg no longer runs uno-check (the head needs no workload; confirmed by CI).Run SourceGenerators testsruns only in thewasdkleg, andSetup VSTest Pathonly in theuwp/wasdklegs.Directory.Build.targets: theUnotag applies to the Uno packages (it checkedWinUIbefore). Uno packages are no longer taggedUWP/WindowsAppSDK/WASDK/WinAppSDK/Universal.ReadMe.md,.github/*instructions and validation skill, and the per-component packageReadMe.md("Which Package is for me?", shipped inside every package) now point Uno apps toCommunityToolkit.Uno.*(components that only support UWP and WinUI have no Uno package).Package verification (local)
Packed the old flow (tooling
c001882,-WinUIMajorVersion 2|3) and the new flow (-UIFramework uwp|winui|uno) with-Releaseand compared every.nupkg:lib/foldersnet10.0-windows10.0.26100net10.0-windows10.0.26100Uno.WinUI/Uno.Fonts.Fluentdependency group removednet10.0net10.0lib; idsCommunityToolkit.Uno.*;CameraPreview,ImageCropper,Media,RadialGauge,RichSuggestBoxareuwp;wasdk-only so have no Uno packagetooling/Test-Toolkit-Package.ps1(exact id, exact lib folders, framework dependency). Sibling dependencies resolve to the same variant in each set (e.g.Uno.Triggers→Uno.Helpers). No component sets a fixedPackageId, and no package shipsbuild/,buildTransitive/,analyzers/or source generators.wasmleg without uno-check) and theuwp/winui/unopackage jobs. Theunoleg packed all 19CommunityToolkit.Uno.*packages with the mobile libs (e.g.lib/net10.0-android36.0; mobile folders are versioned) and skipped the 5uwp;wasdk-only components.net10.0-android/ios/maccatalyst(workloads for the pinned SDK aren't installed here). MSBuild evaluation with all Uno MultiTargets givesnet10.0;net10.0-maccatalyst;net10.0-ios;net10.0-androidandCommunityToolkit.Uno.*ids; the actual mobile packing is only exercised by this PR'spackagejob.PR Checklist
Other information
Breaking change for Uno users:
CommunityToolkit.WinUI.*no longer contains the Uno libs, so Uno apps upgrading must switch toCommunityToolkit.Uno.*. Uno heads in tooling still reference the releasedCommunityToolkit.WinUI.*preview until a preview with the Uno packages is published (tooling follow-up). Apps targeting both Uno and Windows must condition the package references per TFM (documented in the ReadMe).